package com.ali.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

@Data
public class User {
    //主键，使用雪花算法
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    private String code;
    private String name;
    private String password;
    //自动填充
    @TableField(fill = FieldFill.INSERT)
    private long createTime;
    //自动填充
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private long updateTime;
    //逻辑删除
    @TableLogic
    private int isDelete;
}
